#ifndef DIALOG_SETTING_H
#define DIALOG_SETTING_H

#include <DefineLibUiQt.h>
#include <QString>
#include <QtWidgets/QWidget>
#include <QtWidgets/QDialog>
#include <QtWidgets/QTreeWidgetItem>
#include <EControllerQtTree.h>
#include <EControllerQtProperty.h>

namespace Ui {
class DialogSetting;
}

class LIB_UI_QT_DLL DialogSetting : public QDialog
{
    Q_OBJECT

public:
    explicit DialogSetting(QWidget *parent = nullptr);
    ~DialogSetting();


    bool getIfCancelled();
public slots:
    void slotButtonSave(bool value);
    void slotButtonCancel(bool value);
    void slotCurrentItemChanged(QTreeWidgetItem* current, QTreeWidgetItem* previous);


private:
    Ui::DialogSetting *ui;
    bool m_ifCancelled = false;
    EControllerQtTreePtr m_controllerTree;
    EControllerQtPropertyPtr m_controllerProperty;
    // void addToList(const QString& str);
    // QString getSelectedTypeName();
    // QString m_selectedTypeName;
};

#endif // DIALOG_SETTING_H
